
[#macro customeraddressShowView]
<div  class="model-form">
    <el-page-header @back="goBack" content="详情">
    </el-page-header>

        <div class="form-title">详细信息</div>
        <el-form class="viewForm" label-width="80px">
            <el-col :span="12">
                <el-form-item label="收货人姓名">
                    <div v-html="viewModel.name"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="手机号码">
                    <div v-html="viewModel.phone"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="座机">
                    <div v-html="viewModel.tel"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="详细地址">
                    <div v-html="viewModel.address"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="门牌号">
                    <div v-html="viewModel.houseNo"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="标签">
                    <div v-html="viewModel.label"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="邮编">
                    <div v-html="viewModel.postalCode"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="备注">
                    <div v-html="viewModel.note"></div>
                </el-form-item>
            </el-col>
        </el-form>

</div>
[/#macro]
[#macro customeraddressShowConfig]
<script type="text/x-template" id="my-customeraddress-show">
    [@customeraddressShowView /]
</script>
	<script type="text/javascript">
		//显示组件开始
		var customeraddressShowConfig = {};
		customeraddressShowConfig.template = "#my-customeraddress-show";
		customeraddressShowConfig.methods =config.basicMethod();
		customeraddressShowConfig.data = function () {
			return {
				viewModel: {
				},
				activeIndex: "1"
			}
		};


		customeraddressShowConfig.mounted = function () {
			var id = this.$route.query.id;
			var self = this;
			var data = {};
			data.id = id;
			this.postData("${siteurl}tenantRest/customeraddress/view.htm", data, function (res) {
				if (res.code == 0) {
					self.viewModel = res;

				}
			});
		}
		var customeraddressShowView = Vue.component('my-customeraddress-view', customeraddressShowConfig);
		//显示组件结束		
	</script>
[/#macro]


